<template>
  <div class="btn_zhezhao" @click="clickItem('set')">
    <i @click="clickItem('set')" class="el-icon-setting"></i>
    <div v-if="!hidetxt" style="text-align: center;color: #fff;text-shadow: black;">
      点击设置样式；拖动模块进行排序
    </div>
  </div>
</template>

<script>
export default {
  props:['hidetxt'],
  methods: {
    clickItem(type) {
      this.$emit("clickSet");
    },
  },
};
</script>
<style lang="scss" scoped>
.btn_zhezhao {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: right;
  padding: 10px 15px;
  display: none;
  z-index: 9;
  cursor: move;
font-size: 15px;
  text-shadow: 2px 2px 2px #000;


  i {
    font-size: 20px;
    cursor: pointer;
  }
  // &:hover {
  //   .btn_zhezhao {
  //     display: block;
  //   }
  // }
}
</style>